package messagesPacks;
import java.util.Hashtable;

import messagesPacks.GenericMessage.msgType;
import messagesPacks.UsersMSG.op_type;
import Entity.User;
public class ManagerSerachSubMSG extends GenericMessage
{
	private static final long serialVersionUID = 1L;
	private Hashtable<Integer, User> users;//answer of query
	private String id;//search parameter
	private String fname;//search parameter
	private String lname;//search parameter
	private int server_result=-1;
	
	public ManagerSerachSubMSG(String id,String fname,String lname)
	{
		this.id=id;
		this.fname=fname;
		this.lname=lname;
		this.type = msgType.ManagerSerachSubMSG;
		this.users = new Hashtable<Integer, User>();
	}
	
	public Hashtable<Integer, User> getUsers()
	{
		return this.users;
	}
	public void setUsers(Hashtable<Integer, User> users)
	{
		this.users.putAll(users);
	}
	
	public void addUser(int num, User user)
	{
		this.users.put(num,user);
	}
	
	public User getUser(int num)
	{
		return this.users.get(num);
	}
	public String getFName()
	{
		return this.fname;
	}
	public void setFName(String fname)
	{
	 this.fname=fname;
	}
	public String getLName()
	{
		return this.lname;
	}
	public void setLName(String lname)
	{
	 this.lname=lname;
	}
	public String getID()
	{
		return this.id;
	}
	public void setID(String id)
	{
	 this.id=id;
	}
	public int getServerResult()
	{
		return this.server_result;
	}
	public void setServerResult(int server_result)
	{
		this.server_result=server_result;
	}
}
	


